﻿// Shader-Based-Image-Processing (SBIP)
// http://code.google.com/p/sbip/
//
// Copyright © Frank Nagl, 2009-2011
// admin@franknagl.de
//
namespace SBIP.Helper
{
    using System.Drawing;

    /// <summary>
    /// Container for 8bpp pixel's 2d .Net image coordinates and its indexed 
    /// value.
    /// </summary>
    public struct Pixel
    {
        /// <summary>X- and Y-coordinate as <see cref="Point"/>.</summary>
        public Point Point { get { return new Point(X, Y); } }
        /// <summary>Reserved value,s with no direct function, can be used for 
        /// additional information.</summary>
        public byte Reserved { get; set; }
        /// <summary>Indexed value.</summary>
        public byte Value { get; set; }
        /// <summary>X-coordinate.</summary>
        public int X { get; set; }
        /// <summary>Y-coordinate.</summary>
        public int Y { get; set; }
    }
}
